package com.ddsso.auth.web.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author zdd
 * @package com.ddsso.auth.web.config
 * @Time Created by zdd on 2016/11/9.
 * @description 站内地址配置
 */
@Component("urlInternalConfig")
public class UrlInternalConfig {

    private static final Logger logger = LoggerFactory.getLogger(UrlInternalConfig.class);

    /**
     * @description 登入地址配置
     */
    public static String loginWebUrl;

    /**
     * @description 登入地址配置
     */
    public static String logoutWebUrl;

    /**
     * @description 登入地址域
     */
    public static String loginWebDomain;

    /**
     * @description  用户域
     */
    public static String userWebDomain;

    /**
     * @decription 用户模块首页
     */
    public static String userWebIndexUrl;

    /**
     * @description borrow域
     */
    public static String borrowWebDomain;

    /**
     * @description borrow模块首页
     */
    public static String borrowWebIndexUrl;

    /**
     * @param memberWebDomain 会员中心域名
     */
    public static String memberWebDomain;

    /**
     * @param memberWebIndexUrl 会员中心首页
     */
    public static String memberWebIndexUrl;
    /**
     * @param borrowerWebDomain 借款人中心域名
     */
    public static String borrowerWebDomain;

    /**
     * @param borrowerWebIndexUrl 借款人中心首页
     */
    public static String borrowerWebIndexUrl;
    
    /**
     * 网站域名
     */
    public static String websiteDomain;
    
    /**
     * 网站域名首页
     */
    public static String websitIndexUrl;


    @Value("${loginWebUrl}")
    public  void setLoginWebUrl(String loginWebUrl) {
        UrlInternalConfig.loginWebUrl = loginWebUrl;
    }
    @Value("${logoutWebUrl}")
    public  void setLogoutWebUrl(String logoutWebUrl) {
        UrlInternalConfig.logoutWebUrl = logoutWebUrl;
    }
    @Value("${loginWebDomain}")
    public  void setLoginWebDomain(String loginWebDomain) {
        UrlInternalConfig.loginWebDomain = loginWebDomain;
    }
    @Value("${userWebDomain}")
    public  void setUserWebDomain(String userWebDomain) {
        UrlInternalConfig.userWebDomain = userWebDomain;
    }

    @Value("${userWebIndexUrl}")
    public  void setUserWebIndexUrl(String userWebIndexUrl) {
        UrlInternalConfig.userWebIndexUrl = userWebIndexUrl;
    }
    @Value("${borrowWebDomain}")
    public  void setBorrowWebDomain(String borrowWebDomain) {
        UrlInternalConfig.borrowWebDomain = borrowWebDomain;
    }
    @Value("${borrowWebIndexUrl}")
    public void setBorrowWebIndexUrl(String borrowWebIndexUrl) {
        UrlInternalConfig.borrowWebIndexUrl = borrowWebIndexUrl;
    }

    @Value("${memberWebDomain}")
    public void setMemberWebDomain(String memberWebDomain) {
        UrlInternalConfig.memberWebDomain = memberWebDomain;
    }
    @Value("${memberWebIndexUrl}")
    public void setMemberWebIndexUrl(String memberWebIndexUrl) {
        UrlInternalConfig.memberWebIndexUrl = memberWebIndexUrl;
    }
    @Value("${borrowerWebDomain}")
    public void setBorrowerWebDomain(String borrowerWebDomain) {
        UrlInternalConfig.borrowerWebDomain = borrowerWebDomain;
    }
    @Value("${borrowerWebIndexUrl}")
    public void setBorrowerWebIndexUrl(String borrowerWebIndexUrl) {
        UrlInternalConfig.borrowerWebIndexUrl = borrowerWebIndexUrl;
    }
    
    @Value("${websiteDomain}")
	public static void setWebsiteDomain(String websiteDomain) {
		UrlInternalConfig.websiteDomain = websiteDomain;
	}
    
    @Value("${websitIndexUrl}")
	public static void setWebsitIndexUrl(String websitIndexUrl) {
		UrlInternalConfig.websitIndexUrl = websitIndexUrl;
	}
    
    
}